package example.chapter5;

import com.opensymphony.xwork2.ActionSupport;

public class QuestionAction extends ActionSupport{
	private String message;
	
	public String execute() throws Exception{
		return SUCCESS;
	}

	public String addQuestion() throws Exception{
		message = "add";
		System.out.println(message);
		return SUCCESS;
	}
	
	public String viewQuestion() throws Exception{
		message = "view";
		System.out.println(message);
		return SUCCESS;
	}
	
	public String listQuestion() throws Exception{
		message = "list";
		System.out.println(message);
		return SUCCESS;
	}
	
	public String editQuestion() throws Exception{
		message = "edit";
		System.out.println(message);
		return SUCCESS;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
}
